package com.eternal.Exception;/**
 * @Title: ResultEnum
 * @ProjectName sell
 * @Description: TODO
 * @author Eternal
 * @date 2018/8/25 20:49
 */

import lombok.Getter;

/**
 *
 * @Class ResultEnum
 * @Description: TODO
 * @Author Eternal
 * @Version
 * @date 2018/8/25 20:49
 */
@Getter
public enum ResultEnum {
    ERROR("-1","失败"),
    SUCCESS("0", "成功"),
    PARAM_ERROR("1", "参数不正确"),
    ADD_PERMISSION_ERROR("10001","添加权限失败"),
    ADD_PERMISSION("100002","添加权限成功"),
    UPDATE_ROLE_ISOPEN_ERROR("100003","修改角色状态失败"),
    USERINFO_FAILURE("100004","用户信息失效"),
    ADD_ORGANIZE_ERROR("100005","添加机构失败"),
    IMPORT_ORGANIZE_ERROR("100006","导入机构失败"),
    IMPORT_EXCEL_NULL_ERROR("100007","Excel文件不能为空"),
    READ_EXCEL_ERROR("100008","读取Excel文件失败"),
    REGISTER_USER_ERROR("100009","注册失败"),
    IMPORT_USERS_ERROR("100010","导入人员失败"),
    USER_NOT_EXIST("100011","用户不存在"),
    USER_NOT_PASSWORD("100012","密码不正确"),
    USER_INSUFFICIENT_PRIVILEGES("100013","权限不足不能登录"),
    USER_UNBOUND_OPENID("100014","未绑定微信openId"),
    USER_EXIST("100015","账号已存在"),
    ;

    private String code;
    private String message;

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
